from rest_framework import viewsets
from .models import EmergencyInfo, EmergencyEvent
from .serializers import EmergencyInfoSerializer, EmergencyEventSerializer

class EmergencyInfoViewSet(viewsets.ModelViewSet):
    queryset = EmergencyInfo.objects.all()
    serializer_class = EmergencyInfoSerializer

class EmergencyEventViewSet(viewsets.ModelViewSet):
    queryset = EmergencyEvent.objects.all()
    serializer_class = EmergencyEventSerializer